﻿<%@ Page Title="Password Reset" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="PasswordReset.aspx.cs" Inherits="LootPoints.Pages.PasswordReset" %>
<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%>

<asp:Content ID="Content" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    
    <style type="text/css">
        #passwordControl {
            margin-top: 30px;
            margin-left: auto;
            margin-right: auto;
            width: 200px;
        }
        .passwordControl {
            font-family: Constantia;
            font-size: 11px;
        }
        .pnlPop {
            width: 200px;
            height: 100px;
            border: 1px solid Black;
            background-color: white;
            text-align: center;
        }
        .modalBackground {
            background-color:#B8B8BF;
            filter:alpha(opacity=40);
            opacity:0.5;
        }
    </style>

    <div id="passwordControl">
        <p>
            Charactername:
            <asp:Label ID="lblUsername" runat="server" CssClass="errorp" Text="" />
            <asp:RequiredFieldValidator runat="server" ID="reqUsername" CssClass="errorp" ControlToValidate="tbUsername" ErrorMessage="Character is required!" ValidationGroup="passwordControls">*</asp:RequiredFieldValidator><br />
            <asp:TextBox ID="tbUsername" runat="server" Width="196px" CssClass="passwordControl" ValidationGroup="passwordControls" /><br />
            Email:
            <asp:Label ID="lblEmail" runat="server" CssClass="errorp" Text="" />
            <asp:RequiredFieldValidator runat="server" ID="reqEmail" CssClass="errorp" ControlToValidate="tbEmail" ErrorMessage="Email is required!" ValidationGroup="passwordControls">*</asp:RequiredFieldValidator><br />
            <asp:TextBox ID="tbEmail" runat="server" Width="196px" CssClass="passwordControl" ValidationGroup="passwordControls" /><br />
        </p>
        <div>
            <div style="float:left;">
                <asp:Button ID="btnReset" runat="server" Text="reset" Width="95px" CssClass="passwordControl" ValidationGroup="passwordControls" OnClick="btnReset_Click" />
            </div>
            <div style="float:right;">
                <asp:Button ID="btnBack" runat="server" Text="back to login" Width="95px" CssClass="passwordControl" OnClick="btnBack_Click" />
            </div>
        </div>

        <asp:ModalPopupExtender ID="mpeAdd" runat="server" TargetControlID="lbtnInvisible" PopupControlID="pnlPop" BackgroundCssClass="modalBackground"></asp:ModalPopupExtender>
        <asp:Panel ID="pnlPop" runat="server" CssClass="pnlPop">
            <p>
                A sessionticket to reset your password has been made, please check your email.
            </p>
            <p>
                <asp:Button ID="btnOK" runat="server" Text="OK" OnClick="btnOK_Click" />
            </p>
        </asp:Panel>

    </div>
    <asp:LinkButton ID="lbtnInvisible" runat="server" Text="" />

</asp:Content>
